package com.example.springboot.pojo.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)

    private Long id;

    private String username;

    private String password;

    private String nickname;

    private String phone;

    private String email;

    private String address;

    private String icon;

    private String role;

    @TableField(exist = false)
    private String token;
}